home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0" encoding="UTF-8" standalone="no"?>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title>5. Indexed Palette dialog</title>
- <link rel="stylesheet" href="gimp-help-plain.css" type="text/css" />
- <link rel="stylesheet" href="gimp-help-screen.css" type="text/css" />
- <meta name="generator" content="DocBook XSL Stylesheets V1.66.1" />
- <link rel="start" href="index.html" title="GIMP User Manual" />
- <link rel="up" href="ch04.html" title="Chapter 4. Dialogs" />
- <link rel="prev" href="ch04s04s04.html" title="4.4. Paths Menu" />
- <link rel="next" href="ch04s06.html" title="6. Histogram dialog" />
- </head>
- <body>
- <div xmlns="" class="navheader">
- <table width="100%" summary="Navigation header">
- <tr>
- <th colspan="3" align="center" id="chaptername">Chapter 4. Dialogs</th>
- </tr>
- <tr>
- <td width="20%" align="left"><a accesskey="p" href="ch04s04s04.html">Prev</a> </td>
- <th width="60%" align="center" id="sectionname">5. Indexed Palette dialog</th>
- <td width="20%" align="right"> <a accesskey="n" href="ch04s06.html">Next</a></td>
- </tr>
- </table>
- <hr />
- </div>
- <div class="sect1" lang="en" xml:lang="en">
- <div class="titlepage">
- <div>
- <div>
- <h2 class="title" style="clear: both"><a id="gimp-indexed-palette-dialog"></a>5. Indexed Palette dialog</h2>
- </div>
- </div>
- </div>
- <a id="id3451334" class="indexterm"></a>
- <div class="informalfigure">
- <div class="mediaobject">
- <img src="../images/dialogs/dialogs-indexed-palette.png" />
- <div class="caption">
- <p>
- The Indexed Palette dialog
- </p>
- </div>
- </div>
- </div>
- <p>
- The Indexed Palette dialog allows you to edit the colormap of an
- indexed image. (If the mode of the active image is RGB or
- Grayscale instead of Indexed, the dialog is empty and unusable.)
- This is a dockable dialog; see the section on <a href="ch02s03s04.html" title="3.4. Dialogs and Docking">Dialogs and Docking</a> for help on
- manipulating it. It can be activated in two ways:
- </p>
- <div class="itemizedlist">
- <ul type="disc">
- <li>
- <p>
- From the Toolbox menu:
- <span class="guimenu">File</span>-><span class="guisubmenu">Dialogs</span>-><span class="guimenuitem">Indexed Palette</span>
- </p>
- </li>
- <li>
- <p>
- From the image menu:
- <span class="guimenu">Dialogs</span>-><span class="guimenuitem">Indexed Palette</span>
- </p>
- </li>
- </ul>
- </div>
- <div class="simplesect" lang="en" xml:lang="en">
- <div class="titlepage">
- <div>
- <div>
- <h3 class="title"><a id="id3451439"></a>Colormaps and Indexed Images</h3>
- </div>
- </div>
- </div>
- <p>
- In an Indexed image, colors are assigned to pixels by an
- indirect method, using a lookup table called a
- <span class="emphasis"><em>colormap</em></span>. In GIMP, the maximum number of
- entries in a colormap is 256. For a maximum-sized colormap,
- each index from 0 to 255 is assigned an arbitrary RGB color.
- There are no rules restricting the colors that can be assigned
- to an index or the order they appear in: any index can be
- assigned any color.
- </p>
- <p>
- In an Indexed image, instead of being assigned a color directly
- (as happens in RGB and Grayscale images), each pixel is assigned
- an index. To determine the color that should be shown for that
- pixel, GIMP looks up the index in the image's colormap. Each
- indexed image has its own private colormap.
- </p>
- <p>
- It is important to realize that the colors in the colormap are
- the <span class="emphasis"><em>only colors available</em></span> for an indexed
- image (that is, unless you add new colors to the colormap).
- This has a major effect on many gimp operations: for example,
- in a pattern fill, GIMP will usually not be
- able to find exactly the right colors in the colormap, so it
- will approximate them by
- <a href="go01.html#glossary-dithering">Dithering</a>. If the
- colormap is too limited or poorly chosen, this can easily
- produce very poor image quality.
- </p>
- <p>
- The Indexed Palette dialog allows you to alter the colormap for an
- image, either by creating new entries, or by changing the colors
- for the existing entries. If you change the color associated
- with a given index, you will see the changes reflected
- throughout the image, as a color shift for all pixels that are
- assigned that index. The entries are numbered with 0 in the
- upper left corner, 1 to its right, etc.
- </p>
- <p>
- Here are the operations you can perform using this dialog:
- </p>
- <div class="variablelist">
- <p class="title">
- <b>Using the Indexed Palette dialog</b>
- </p>
- <dl>
- <dt>
- <span class="term">Click on a color entry</span>
- </dt>
- <dd>
- <p>
- This sets GIMP's foreground color to the color you click
- on, as shown in the Toolbox color area. As a result, this
- color will be used for the next painting operation you do.
- </p>
- </dd>
- <dt>
- <span class="term">Ctrl-click on a color entry</span>
- </dt>
- <dd>
- <p>
- Le Ctrl-clic sur une case de couleur place cette couleur
- en couleur d'Arrière-plan dans la Boîte à outils.
- </p>
- </dd>
- <dt>
- <span class="term">Double-click on a color entry</span>
- </dt>
- <dd>
- <p>
- This sets GIMP's foreground color to the color you click
- on, and also brings up a Color Editor that allows you to
- change that colormap entry to a new color.
- </p>
- </dd>
- <dt>
- <span class="term">Color index</span>
- </dt>
- <dd>
- <p>
- You can select a different colormap entry by typing its
- index here, or clicking the spinbutton to the right.
- </p>
- </dd>
- <dt>
- <span class="term">Hex triplet</span>
- </dt>
- <dd>
- <p>
- This area shows a hex-code representation (such as is used
- in HTML) for the color assigned to the currently selected
- colormap entry. You can edit the color here, instead of
- using a Color Editor, if you want to. See
- <a href="go01.html#glossary-hextriplet">HexTriplet</a>
- </p>
- </dd>
- <dt>
- <span class="term">Edit color</span>
- </dt>
- <dd>
- <a id="gimp-indexed-palette-edit"></a>
- <p>
- This button (in the lower left corner of the dialog)
- brings up a Color Editor that allows you to change the
- color for the currently selected colormap entry. The
- effect is similar to double-clicking on the entry, except
- that it does not set GIMP's foreground color.
- </p>
- </dd>
- <dt>
- <span class="term">Add color</span>
- </dt>
- <dd>
- <a id="gimp-indexed-palette-add"></a>
- <p>
- This button (in the lower right corner of the dialog)
- allows you to add new colors to the colormap. If you
- click on the button, the current foreground color, as
- shown in the Toolbox, will be tacked on to the end of the
- colormap. If instead you hold down <span><b class="keycap">Ctrl</b></span>
- and click, the background color from the Toolbox will be
- added. (If the colormap contains 256 entries, it is full,
- and trying to add more will have no effect.)
- </p>
- </dd>
- </dl>
- </div>
- <div class="tip" style="margin-left: 0.5in; margin-right: 0.5in;">
- <table border="0" summary="Tip">
- <tr>
- <td rowspan="2" align="center" valign="top" width="25">
- <img alt="[Tip]" src="../images/tip.png" />
- </td>
- <th align="left">Tip</th>
- </tr>
- <tr>
- <td colspan="2" align="left" valign="top">
- <p>
- If you make a mistake, you can undo it by focusing the pointer in
- the image whose colormap you have changed, and then pressing
- <span><b class="keycap">Ctrl-Z</b></span> or choosing
- <span class="guimenu">Edit</span>-><span class="guimenuitem">Undo</span>
- in the image menu.
- </p>
- </td>
- </tr>
- </table>
- </div>
- <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
- <table border="0" summary="Note">
- <tr>
- <td rowspan="2" align="center" valign="top" width="25">
- <img alt="[Note]" src="../images/note.png" />
- </td>
- <th align="left">Note</th>
- </tr>
- <tr>
- <td colspan="2" align="left" valign="top">
- <p>
- This dialog is not the only way of altering the colormap for an
- indexed image. The color tools, such as Brightness/Contrast,
- Hue/Saturation, etc, also change the colors in the colormap.
- </p>
- </td>
- </tr>
- </table>
- </div>
- </div>
- </div>
- <div class="navfooter">
- <hr />
- <table width="100%" summary="Navigation footer">
- <tr>
- <td width="40%" align="left"><a accesskey="p" href="ch04s04s04.html">Prev</a> </td>
- <td width="20%" align="center">
- <a accesskey="u" href="ch04.html">Up</a>
- </td>
- <td width="40%" align="right"> <a accesskey="n" href="ch04s06.html">Next</a></td>
- </tr>
- <tr>
- <td width="40%" align="left" valign="top">4.4. Paths Menu </td>
- <td width="20%" align="center">
- <a accesskey="h" href="index.html">Home</a>
- </td>
- <td width="40%" align="right" valign="top"> 6. Histogram dialog</td>
- </tr>
- </table>
- </div>
- </body>
- </html>
-